import request from '@/http/request'

// 登录
export function login(data) {
    return request.post(`/client/login/toLogin`,data)
  }

// 用户注册
export function register(data) {
    return request.post(`/client/login/register`,data)
  }

// 获取
export function getSmsCode(data) {
    return request.post(`/client/login/getSmsCode`,data)
}

// 找回账号
export function findAccount(data) {
  return request.post(`/client/login/threeElementsAuth`,data)
}

// 找回密码--账号检验
export function checkAccount(data) {
  return request.post(`/client/login/checkAccount`,data)
}

// 找回密码--重置密码
export function findPassword(data) {
  return request.post(`/client/login/findPassword`,data)
}

// 登出
export function logout() {
    return request.get(``)
  }

// 获取用户信息
export function getInfo() {
    return request.get(``)
}
// 获取隐私政策
export function getPrivacyAgreement() {
  return request.get(`/client/signUser/getPrivacyAgreement`)
}
// 用户协议
export function getRegistrationProtocol() {
  return request.get(`/client/signUser/getRegistrationProtocol`)
}
// 购买协议
export function getPurchaseAgreement() {
  return request.get(`/client/signUser/getPurchaseAgreement`)
}


